import instance from "@/http";

// 分页
export const templatePage = (formData)=>instance.post("/template/page",formData)

// 文件上传
export const uploadTemplate= (formData)=>instance.post("/template/upload",formData)
// 添加资源信息
export const addTemplateInfo= (formData)=>instance.post("/template/add",formData)

// 删除文件
export const deleteTemplate= (uuid)=>instance.delete("/template/delete/"+uuid)

// 文件下载
export const downLoadTemplate= (uuid)=>instance.post("/template/download",{uuid},{responseType:"arraybuffer"})
